{include file="public_head"}
{include file="public_menu"}
    <div class="content_center">
        <div class="main_center">
            {include file="public_information_menu"}
            <div class="main_right right">
                <div class="main_right_title">我的积分明细</div>
                <div class="integral_con">
                    <div class="integral_num">
                        <table border="0">
                            <tr>
                                <td class="usable">
                                    <span class="title">我的积分</span>
                                    <div class="number">{$find.integral}<span>.00</span></div>
                                </td>
                                <!--<td class="overdue">-->
                                    <!--<span class="title">将要过期的积分</span>-->
                                    <!--<div class="number">51<span>.00</span></div>-->
                                    <!--<span class="time">(将于2017.12.31过期)</span>-->
                                <!--</td>-->
                                <td class="button">
                                    <input type="button" value="兑换超值商品与优惠券" onclick='document.location="{:url('IntegralGoods/index')}"'>
                                </td>
                            </tr>
                        </table>

                    </div>
                    <div class="integral_det">
                        <table border="0">
                            <tr class="title">
                                <th class="text-center origin"><span>来源/用途</span></th>
                                <th class="text-center number"><span>积分变化</span></th>
                                <th class="text-center date"><span>日期</span></th>
                            </tr>
                            {volist name="data" id="item"}
                            <tr class="det">
                                <td class="text-left origin">
                                    <div class="media">
                                        <!--<div class="media-left">-->
                                            <!--<a href="#">-->
                                                <!--<img class="media-object" src="__STATIC__/img/pic64.png" alt="...">-->
                                            <!--</a>-->
                                        <!--</div>-->
                                        <div class="media-body">
                                            <div class="goods_name">{$item.title}</div>
                                            {switch name="$item.type"}
                                            {case value="签到"}
                                            <div class="goods_num">签到领积分</div>
                                            {/case}
                                            {case value="兑换"}
                                            <div class="goods_num">积分兑换商品</div>
                                            {/case}
                                            {case value="购买"}

                                            <div class="goods_num">购买商品</div>
                                            {/case}
                                            {/switch}
                                        </div>
                                    </div>
                                </td>
                                {eq name="item.type_id" value="1"}
                                <td class="text-center number">+{$item.integral}</td>
                                {else/}
                                <td class="text-center number">-{$item.integral}</td>
                                {/eq}
                                <td class="text-center date">{$item.create_time|date='Y-m-d H:i:s',###}</td>
                            </tr>
                            {/volist}
                        </table>
                        {$data->render()}
                    </div>

                </div>
            </div>
        </div>



    </div>
{include file="public_foot"}